import { Component, OnInit } from '@angular/core';
import { Service } from '../../../server/server';

@Component({
  selector: 'app-task-details',
  templateUrl: './task-details.component.html'
})
export class TaskDetailsComponent implements OnInit {

  constructor(private server :Service) { }

  ngOnInit() {
    this.taskdetailseventEmit = this.server.taskdetailseventEmit.subscribe((value: any) => {
      this.details = value;
      //console.log(this.details);
    });
  }
  //取消订阅
  public taskdetailseventEmit: any;
  ngOnDestroy() {
    this.taskdetailseventEmit ? this.taskdetailseventEmit.unsubscribe() : '';
  }

  public details:any;

}
